#pragma once

#include <QThread>

#include "common.h"
#include "MathModel.h"
#include "MainWindow.h"

class Controller : public QThread
{
Q_OBJECT
public:
    Controller ( MainWindow * mainWindow );

    void run();

    void Stop();

private:
    GravityModel model;
    MainWindow * mainWindow;
    bool stopFlag;
};
